home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / compstol / cmpsttl1.lha / CompositeTool / v1.1.adoc / CompositeTool.ch.1.a < prev    next >
Encoding:
Text File  |  1990-05-08  |  14.1 KB  |  446 lines

  1. 1.1    NCSA CompositeTool
  2.  
  3. CompositeTool Basics    1.1
  4.  
  5. National Center for Supercomputing Applications
  6.  
  7. April 1990
  8.  
  9.                                                                 
  10.  
  11.  
  12.  
  13.  
  14. 1.1    NCSA CompositeTool
  15.  
  16. CompositeTool Basics    1.1
  17.  
  18. National Center for Supercomputing Applications
  19.  
  20. April 1990
  21.  
  22.                                                                 
  23.  
  24.  
  25. 5/2/90
  26.  
  27.  
  28.  
  29.  
  30. Chapter 1    CompositeTool Basics
  31.  
  32.  
  33.  
  34. Chapter Overview
  35. Installing the Program
  36. Setting Up a Non-NCSA Installation
  37. Invoking CompositeTool
  38. Standard Features
  39. Mouse Buttons
  40. Title Bars
  41. CompositeTool Messages
  42. Working with CompositeTool
  43. Opening a Canvas
  44. Changing the Canvas Color
  45. Loading an Image
  46. Entering Text
  47. Using the Feature Option
  48. Clearing the Display
  49. Exiting CompositeTool
  50.  
  51. Chapter Overview
  52.  
  53. This chapter outlines general information about NCSA 
  54. CompositeTool such as how to use the mouse buttons, open frames, 
  55. interpret messages, and retrieve program files. A tutorial which 
  56. describes how to set up a non-NCSA installation (both personal and 
  57. system installations) is also included.
  58.  
  59. This manual assumes you have knowledge of UNIX and the 
  60. SunView system. Please refer to manuals outlining these items if 
  61. you are unfamiliar with them.
  62.  
  63.  
  64. Installing the Program
  65.  
  66. You can only invoke CompositeTool from the physical machine 
  67. that you are logged on to. That is, if you log on to another machine 
  68. remotely, CompositeTool cannot be invoked from that machine.
  69.  
  70. For example, if you were to log on to machine "venus," invoke 
  71. SunView, bring up a shell window, and (within that shell window) 
  72. remotely log on to machine "newton," you would be unable to 
  73. invoke CompositeTool from that shell window.
  74.  
  75.  
  76. Setting Up a  Non-NCSA 
  77. Installation
  78. To install NCSA CompositeTool, you need to place its files in a 
  79. directory, modify a Makefile and run Make. CompositeTool uses 
  80. the Sun User Defaults Database mechanism to specify installation 
  81. dependent filenames. The Makefile is targeted toward two forms 
  82. of installation:  personal and system. You should first run a 
  83. personal installation to produce a working local version of the 
  84. program. Once satisfied with the local version, you can run a 
  85. system installation as root for a system wide version. In the steps 
  86. below, personal installation information is preceded by a star (*).
  87.  
  88. Install NCSA CompositeTool:
  89.  
  90. 1.    Put a copy of dist.tar.z in your current directory.
  91.  
  92.     The directory must contain enough space to include the 
  93.     following:
  94.  
  95.     Ñ    Extracted files from compressed tar file ~1.2 MB 
  96.     (megabytes)
  97.  
  98.     Ñ    *Space for Personal installation:
  99.  
  100.         Sun-3    ~ .6 MB
  101.         Sun3861    ~ .6 MB
  102.         Sun-4    ~ .6 MB
  103.  
  104. NOTE:  Some of this space is recovered, because the 
  105. compositetool.o object file is removed.
  106.  
  107.     Ñ    System installation╤no space is used in this directory 
  108.     unless you so designate it in the Makefile.
  109.  
  110. NOTE:  Temporary space is required to do either installation. 
  111. Consult the Makefile in the distribution for approximate sizes.
  112.  
  113. 2.    Enter the following command line to extract the directory 
  114. ./v1.1.dist, and place it in your current directory.
  115.  
  116.         zcat dist.tar.Z | tar xvfB -
  117.  
  118. 3.    Enter the following command line and read the documentation 
  119. in the Makefile.
  120.  
  121.         cd v1.1.dist
  122.  
  123.  
  124. *Personal Installation╤Step 4
  125.  
  126. Ñ    Change any required macros (only one at most) in the 
  127. Makefile, and then enter:
  128.  
  129.         make personal
  130.  
  131. CompositeTool displays some messages on the screen.
  132.  
  133. Ñ    The executable, compositetool, is now ready to execute in 
  134. SunView IN THIS DIRECTORY! If you move out of this 
  135. directory, you will have to change some personal defaults by 
  136. either editing $HOME/.defaults or by entering the following 
  137. command in SunView to change them:
  138.  
  139.     defaultsedit
  140.  
  141.  
  142. System Installation╤Step 4
  143.  
  144. Ñ    Change any required macros (three at the most) in the Makefile.
  145.  
  146. Ñ    Become superuser by entering:
  147.  
  148.         su root
  149.         password: <fill in>
  150.  
  151. Ñ    On the next line, enter:
  152.  
  153.         make system
  154.  
  155. CompositeTool displays some messages on the screen.
  156.  
  157. Ñ    Add the system directory where compositetool and associated 
  158. files were installed to your search path, by editing the 
  159. appropriate startup file for your login shell. For example, if you 
  160. use the C shell, edit the .login or .cshrc file in your home 
  161. directory. If you use the Bourne shell edit the .profile in your 
  162. home directory.
  163.  
  164.  
  165. Invoking CompositeTool
  166. Start CompositeTool by following the steps below.
  167.  
  168. 1.    Log on to a Sun Workstation. (Enter your name and then your 
  169. password at the respective prompts.)
  170.  
  171. 2.    To invoke SunView (running SunOS 4.x), enter:
  172.  
  173.     sunview
  174.  
  175. 3.    In a shell window, enter the directory location of the desired 
  176. file.
  177.  
  178. For example, if you installed CompositeTool in /usr/local/bin, 
  179. then in a window (shell or command), you would enter:
  180.  
  181.     /usr/local/bin/compositetool
  182.  
  183. NOTE:  If you plan to use CompositeTool frequently, place its 
  184. directory in your search path. You can then run the program from 
  185. any directory of your choice by entering:
  186.  
  187.     compositetool
  188.  
  189. You are now ready to run CompositeTool. Read the succeeding 
  190. sections, "Mouse Buttons" and "Composite Tool Messages" for 
  191. general information on SunView and the program's operation 
  192. before continuing moving to the tutorial.
  193.  
  194.  
  195. Standard Features
  196.  
  197. Mouse Buttons
  198. The left mouse button is the only one used for CompositeTool 
  199. functions. Whenever reference is made in this manual to pushing 
  200. depressing, or clicking a button, the left mouse button is implied.
  201.  
  202. The middle and right mouse buttons retain their default SunView 
  203. functions. Typically, the middle mouse button is used to move a 
  204. window. In order to move a CompositeTool window, place the 
  205. cursor anywhere within the window (either inside the window or 
  206. on the window title bar), depress the middle mouse button, and 
  207. move the CompositeTool window to its new location on the screen.
  208.  
  209. Typically, the right mouse button is used to invoke the window 
  210. frame menu. In order to invoke the SunView Frame menu, (which 
  211. likely contains such options as Done, Resize, Hide, Move, etc.), 
  212. place the cursor anywhere within the window (either inside the 
  213. window or on the window title bar), press and hold down the right 
  214. mouse button, and make the Frame menu selection.
  215.  
  216.  
  217. Title Bars
  218. All CompositeTool frames except for the Canvas frame contain 
  219. title bars. Title bars are located at the top of the frames and contain 
  220. the name of the frame, as well as information on current options 
  221. you have chosen within the frame; e.g. tag numbers change as 
  222. successive ones are chosen, palette names change, etc. The title bar 
  223. in the Base frame reflects the application name, its version 
  224. number, and the name of your current directory.
  225.  
  226.  
  227. CompositeTool Messages
  228. Each time CompositeTool performs an operation, a uniquely 
  229. numbered message is generated. These messages are displayed 
  230. on the Base frame (Figure 1.1).
  231.  
  232. Figure 1.1  Base Frame
  233.                                             
  234.  
  235. Most messages simply echo the operation performed (for example, 
  236. when CompositeTool is invoked, message number 1 tells you that 
  237. the CompositeTool Base frame is displayed). These messages also 
  238. serve to jar your memory. Once you are familiar with 
  239. CompositeTool, you should be able to run the program using these 
  240. messages and not have to refer to the manual. While you are 
  241. learning the program you are advised to glance at these messages 
  242. frequently.
  243.  
  244. When you make an error (for example, refer to a file that does not 
  245. exist or that you cannot read), an error message is generated. You 
  246. are invited to test CompositeTool by entering illegal data (for 
  247. example, entering a letter where an integer is expected, or vice 
  248. versa). Please report any problems you encounter to NCSA 
  249. Software Tools (See Bugs and ReadMe pages of this manual).
  250.  
  251.  
  252. Working with CompositeTool
  253.  
  254. Opening a Canvas
  255. Open a new canvas by selecting the Canvas button from the Base 
  256. frame (Figure 1.1). By default, the canvas only partially covers the 
  257. screen. You may adjust the canvas size by moving the mouse 
  258. pointer into the canvas window and holding down the right mouse 
  259. button. The SunView Frame Selection menu appears on the screen. 
  260. Select a screen size from the submenu located under the Resize 
  261. option. For this tutorial, select FullScreen. The canvas now covers 
  262. the entire screen.
  263.  
  264. Move the canvas into the background so that the Base frame again 
  265. appears on the screen. Once again, hold down the right mouse 
  266. button until the menu box appears on the screen. Select the Back 
  267. option.
  268.  
  269.  
  270. Changing the Canvas Color
  271. The default color of the canvas is pixel value 0, which is always set 
  272. to white by CompositeTool. Other pixel values in the range 
  273. (0-255) are available for use. (Refer to Chapter 2 the section "Raw 
  274. Palette Files" and Chapter 3 the section "Palette Frame" for more 
  275. detailed information on pixel values and color mapping.)
  276.  
  277. Change the canvas color by following the steps below.
  278.  
  279. 1.    Select the Palette button from the Base frame. Notice that the 
  280. Palette button disappears from the Base frame. It reappears 
  281. when the you close the Palette frame. (See Appendix A, 
  282. "Limitations of NCSA CompositeTool.") The Palette frame in 
  283. Figure 1.2 appears.
  284.  
  285. Figure 1.2 Palette Frame
  286.                                              
  287.  
  288. 2.    Position the cursor after the "Load background color:" option 
  289. and click or simply press RETURN. A prompt appears.
  290.  
  291. 3.    Enter the pixel value 75. 
  292.  
  293. 4.    Click the Load background color button and wait for the 
  294. message "Program setting read from file" to appear in the Base 
  295. frame. CompositeTool has now read the file.
  296.  
  297. 5.    Click the Done button to close the frame. 
  298.  
  299. NOTE:  You do not have to click the Done button immediately after 
  300. entering options. Doing so simply closes the window, thereby 
  301. allowing an unobstructed view of the image.
  302.  
  303. 5.    Click the FinalPic button on the Base frame. The canvas is now 
  304. blue.
  305.  
  306. NOTE:  Unless you select this button after frame entries, stored 
  307. data will be used to display your image, instead of what was just 
  308. entered.
  309.  
  310. NOTE:  A canvas must be displayed before CompositeTool draws 
  311. in an image, contour, or vector.
  312.  
  313.  
  314. Loading an Image
  315. NCSA CompositeTool contains some sample files for you to load in 
  316. for viewing and manipulation. A list of the files contained in 
  317. CompositeTool are listed in Appendix B, "CompositeTool Files."
  318. For now you will load an image entitled, demo.session.a.
  319.  
  320. 1.    Select the FileUtil button from the Base frame. The FileUtil 
  321. frame appears as shown in Figure 1.3.
  322.  
  323. Figure 1.3  File Utility Frame
  324.                                             
  325.  
  326. 2.    Enter the command line below at the "File:" entry.
  327.  
  328.         demo.session.a/demo.session.a
  329.  
  330. NOTE:  We assume here that CompositeTool was started in the 
  331. present working directory which contains the demo.session.a 
  332. directory. See Appendix A, "Limitations in NCSA CompositeTool" 
  333. for information about specifying paths.
  334.  
  335.  
  336. 3.    Click the Read button and wait until CompositeTool reads in the 
  337. file.
  338.  
  339. 4.     Click the Done button.
  340. 5.    Click FinalPic in the Base frame. The image DemoData 
  341. appears on the screen.
  342.  
  343.  
  344. Entering Text
  345. Next, you will enter text on the sample image. (Refer to Chapter 3, 
  346. the section, "Text Frame" for more detailed information on 
  347. entering texts and choosing fonts.)
  348.  
  349. 1.    Click the Text button in the Base frame. The Text frame in 
  350. Figure 1.4 appears.
  351. Figure 1.4  Text Frame
  352.                                             
  353.  
  354. Notice that at the top of the window is the line Tag Selector followed 
  355. by four buttons labeled, -5, -, +, +5. These buttons allow you to move 
  356. through all of your entered tags (Table 1.1). Tags are numbered 
  357. identifiers that are attatched to each piece of text (numbers, letters, 
  358. or words) you've entered into the Text frame and which now appear 
  359. in your displayed image. (For simplicity's sake, entered text will 
  360. be referred to as tags for the rest of this discussion.)
  361.  
  362. Table 1.1    Tag Advancing/ 
  363. Detracting Buttons
  364. Button            Purpose
  365.  
  366.     -5    Moves backwards through tags by 5
  367.     -    Moves backwards through tags by 1
  368.     +    Moves forward through tags by 1
  369.     +5    Moves forward through tags by 5
  370.  
  371.  
  372. Assume you have entered twenty tags in your image. Currently 
  373. you are viewing the first tag you entered. You know this because 
  374. CompositeTool numbers your tags from 0 upward, and the title bar 
  375. displays the tag number, t0. Also, the Color, X-origin, and Y-
  376. origin lines give the color and x, y location of the tag, respectively, 
  377. while the Text Body line lists the name you assigned the tag. The 
  378. Font directory lists the directory location of the word's font and the 
  379. Font line lists the name of the word's font.
  380.  
  381. You want to view and alter tag 2, (t2 in the title bar).
  382.  
  383. 2.    Click the "+" button twice to move to this tag. "Y-axis" should 
  384. appear on the Text Body line.
  385.  
  386. 3.    Move your cursor to this line and click.
  387.  
  388. 4.    Enter the word test after Y-axis. Your tag should appear as 
  389. follows:
  390.  
  391.     Y-axis test
  392.  
  393. 5.    Click the DRAW it button.
  394.  
  395. 6.    Save the new text by clicking the STORE displayed values 
  396. button. If you don't click this, the values will not be entered.
  397.  
  398. 7.    Click the FinalPic toggle (OFF) button so that it toggles to 
  399. FinalPic toggle (ON). The text will now  be a part of the new 
  400. composite.
  401.  
  402. 8.    Click the Done button.
  403.  
  404. 9.    Click the FinalPic button in the Base frame. The altered tag 
  405. will appear in your image.
  406.  
  407.  
  408. Using the Feature Option
  409. From this point on in the tutorial, you will subtract items from your 
  410. display instead of add them. Eventually you will exit the 
  411. application with a blank screen.
  412.  
  413. The Feature frame allows you to add x and y axes, grid marks, 
  414. and tick marks to your image. Because the display 
  415. session.data.a already contains these items, you will erase 
  416. them in order to practice using the Feature frame options.
  417.  
  418. 1.    Choose the Feature button from the Base frame. The Feature 
  419. frame appears on the screen.
  420.  
  421. 2.    Select the button Features OFF to turn off the annotation options. 
  422. Notice the the eight option buttons in the center of the frame 
  423. automatically toggle OFF as shown in Figure 1.5.
  424.  
  425. Figure 1.5  Features Frame
  426.                                              
  427.  
  428.  
  429. 3.    Select the button DRAW it and click the button Done.
  430.  
  431. 4.    Click FinalPic in the Base frame. The image will be redrawn 
  432. without any axes, grid marks, or tick marks.
  433.  
  434.  
  435. Clearing the Display
  436. Choose the Clear button from the Base frame to clear the display on 
  437. your canvas, but not the actual canvas itself. Click the Clear button 
  438. now.
  439.  
  440.  
  441. Exiting CompositeTool
  442. Exit the CompositeTool application completely by selecting the Quit 
  443. button from the Base frame. A confirmation box appears on the 
  444. screen asking, "Are you sure you want to Quit?" Click the Confirm 
  445. button.
  446.